package 集合.day2.demo5;

import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet<Stu> ts=new TreeSet<>();
        ts.add(new Stu(23,"s1"));
        ts.add(new Stu(23,"a2"));
        ts.add(new Stu(34,"a3"));


        System.out.println(ts);

    }
}
